/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2024-05-10 14:08:03
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-05-17 10:29:26
 * @FilePath: \ken147258.topayClient\src\api\other\behavior.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import request from "@/utils/request";
import { AxiosPromise } from "axios";

const URL = {
  getsysconfiginfo: '/platformApi/getsysconfiginfo',
  getmsconfiginfo: '/platformApi/getmsconfiginfo',
  getdfconfiginfo: '/platformApi/getdfconfiginfo',

  sysconfigadd: '/platformApi/sysconfigadd',
  sysconfigedit: '/platformApi/sysconfigedit',

  msconfigadd: '/platformApi/msconfigadd',
  msconfigedit: '/platformApi/msconfigedit',

  dfconfigadd: '/platformApi/dfconfigadd',
  dfconfigedit: '/platformApi/dfconfigedit',

  passmodify: '/platformApi/passmodify',
};

export function getsysconfiginfo(data: object): AxiosPromise<any> {
  return request({
    url: URL.getsysconfiginfo,
    method: "get",
    params: data,
  });
}

export function getmsconfiginfo(data: object): AxiosPromise<any> {
  return request({
    url: URL.getmsconfiginfo,
    method: "get",
    params: data,
  });
}

export function getdfconfiginfo(data: object): AxiosPromise<any> {
  return request({
    url: URL.getdfconfiginfo,
    method: "get",
    params: data,
  });
}

export function sysconfigadd(data: object): AxiosPromise<any> {
  return request({
    url: URL.sysconfigadd,
    method: "post",
    data: data,
  });
}

export function sysconfigedit(data: object): AxiosPromise<any> {
  return request({
    url: URL.sysconfigedit,
    method: "post",
    data: data,
  });
}

export function msconfigadd(data: object): AxiosPromise<any> {
  return request({
    url: URL.msconfigadd,
    method: "post",
    data: data,
  });
}

export function msconfigedit(data: object): AxiosPromise<any> {
  return request({
    url: URL.msconfigedit,
    method: "post",
    data: data,
  });
}

export function dfconfigadd(data: object): AxiosPromise<any> {
  return request({
    url: URL.dfconfigadd,
    method: "post",
    data: data,
  });
}

export function dfconfigedit(data: object): AxiosPromise<any> {
  return request({
    url: URL.dfconfigedit,
    method: "post",
    data: data,
  });
}

export function passmodify(data: object): AxiosPromise<any> {
  return request({
    url: URL.passmodify,
    method: "post",
    data: data,
  });
}
